<?php
    // 后台接口
    // echo 1;
    // echo 'Welcome to this';
    // header("Content-Type:text/plain; charset=utf-8");
    // echo '<div><span>测试数据</span></div>';

    // json_encode() 把数组或对象转换成字符串
    // $arr = array(123,456,789);
    // $arr = array("username"=>'张三','age'=>'19','sex'=>'male');
    // \u5f20\u4e09 这种形式就是Unicode编码
    // $arr = array();
    // $arr['123'] = array('username'=>"张三",'chinese'=>'130','math'=>'149','english'=>'146','summary'=>'298');
    // $arr['124'] = array('username'=>"李四",'chinese'=>'132','math'=>'109','english'=>'126','summary'=>'218');
    // $arr['125'] = array('username'=>"王五",'chinese'=>'112','math'=>'129','english'=>'136','summary'=>'228');
   
    // echo json_encode($arr);
    $f = $_GET['flag'];
    if($f==1){
        echo '123';
    }elseif($f==2){
        echo '456';
    }
?>